<div class="assessmentPeace main">
	<div class="query-info shadowbox">
		<div class="container-header">平安考核</div>
		<form class="base-info pa-form-content"
			name="queryForm" novalidate>
			<div class="pa-form-control pa-form-control-inline">
			  <label>考核名称：</label>
			  <input type="text"
			    ng-model="queryAssessmentPeace.queryData.taskName">
			</div>
			<div class="pa-form-control pa-form-control-inline">
			  <label>巡查人：</label>
			  <input type="text"
			    ng-model="queryAssessmentPeace.queryData.createUserName">
			</div>
			<div class="pa-form-control pa-form-control-inline">
			  <label>考核类型：</label>
			  <select name="checkUnit"
			  	ng-model="queryAssessmentPeace.queryData.dataSource">
			  	<option value=""></option>
			  	<option value="0">内业考核</option>
			  	<option value="1">外业考核</option>
			  </select>
			</div>
			<div class="pa-form-control pa-form-control-inline">
				<label>巡查时间：</label>
				<input type="text" ng-datepicker name="startTime"  
					ng-model="queryAssessmentPeace.queryData.checkCompletedTimeFrom">
					到
				<input type="text" ng-datepicker name="endTime"
				  ng-model="queryAssessmentPeace.queryData.checkCompletedTimeTo">
			</div>
		</form>
		<div class="btn-outer-right">			
			<a class="pa-btn"
				ng-click="queryAssessmentPeace.query(queryForm)">
				<i class="fa fa-search"></i>
				<span class="ml5">查询</span>
			</a>
			<a class="pa-btn reset-btn"
				ng-click="queryAssessmentPeace.reset()">
				<i class="fa fa-repeat"></i>
				<span class="ml5">重置</span>
			</a>		
		</div>
	</div>
	<div class="pa-table-container shadowbox">
		<form class="base-info">
			<table class="pa-table">
				<thead>
					<tr>
						<th>考核名称</th>
						<th>考核类型</th>
						<th>巡查地点</th>
						<th>考核人</th>
						<th>考核单位</th>
						<th>考核得分</th>
						<th>考核提交时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="item in queryAssessmentPeace.assessmentPeaceList">
						<td>{{item.taskName}}</td>
						<td>{{item.dataSource  == 1 ? '外业考核' :
								item.dataSource  == 0 ? '内业考核' : ''}}</td>
						<td>{{item.bidName}}</td>
						<td>{{item.createUserName}}</td>
						<td>{{item.role == '0' ? '指挥部' : 
									item.role == '1' ? '总监办' :
									item.role == '2' ? '项目部' : ''}}</td>
						<td>{{assessmentPeace.getTotalScore(item)}}</td>
						<td>{{item.checkCompletedTime1}}</td>
						<td>
							<div class="del"
								authorization-btn="api/securityActivities/app/querySpecialCheckById"
								ng-click="$state.go('specialCheckItemList',{id:item.taskId,type:item.dataSource == '0' ? 'inner' : item.dataSource == '1' ? 'outer' : ''})">
								<i class="fa fa-street-view color"></i>
								<span>查看</span>									
							</div>
							<div class="del"
								authorization-btn="api/securityActivities/specialCheck/deleteSpecialCheckById"
								ng-click="queryAssessmentPeace.deleteAssessmentPeace(item.taskId)">
								<i class="fa fa-trash color"></i>
								<span>删除</span>
							</div>									
						</td>
					</tr>
				</tbody>
			</table>
		</form>
		<div class="total-num">
		  共计<span class="total-num-colorful">
		  {{queryAssessmentPeace.paginationData.total}}</span>条
		</div>
		<!-- 分页 -->
    <div class="pagination-outer">
      <uib-pagination
        total-items="queryAssessmentPeace.paginationData.total"
        ng-model="queryAssessmentPeace.paginationData.pageNum"
        items-per-page="queryAssessmentPeace.paginationData.pageSize"
        ng-change="pageChange()"
        class="pagination-sm"
        boundary-link-numbers="true"
        max-size="5"
        next-text="下一页"
        previous-text="上一页"></uib-pagination>
    </div>
	</div>
</div>